﻿using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Controller
{
    public class RoleController
    {
        protected RoleBussiness Controller = new RoleBussiness();
        

        public TblRole ObjRole = new TblRole();
       

        public bool AddData()
        {
            return Controller.AddData(ObjRole);
        }

        public bool DeleteData(int k)
        {
            return Controller.DeleteData(k);
        }

        public bool UpdateData()
        {
            return Controller.UpdateData(ObjRole);
        }

        public List<TblRole> GetAllData()
        {
            return Controller.GetAll();
        }

        public TblRole GetDataByRoleID(int k)
        {
            return Controller.GetDataByKey(k);
        }


        
    }
}
